package com.woniu.postbar.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostLikeDTO {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("评论id")
    private Integer commentId;

    @ApiModelProperty("帖子id")
    private Integer postId;

    @ApiModelProperty("点赞状态（0-确认，1-取消）")
    private Byte postStatus;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    public PostLikeDTO(String postId, String userId, Integer status, LocalDateTime updateTime) {

    }
}
